package com.letoken.platform.repo.admin.req.config;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author letokenlabs
 * @date 2022/11/25$
 */
@Data
@ApiModel(value = "修改提现配置请求返回对象", description = "修改提现配置请求返回对象")
public class UpdateExtractConfigReq {
    @NotNull(message = "代币不能为空")
    @ApiModelProperty(name = "主键id", value = "id", required = true, example = "1")
    private Integer id;

    @NotNull(message = "代币id不能为空")
    @ApiModelProperty(name = "代币id", value = "tokenId", required = true, example = "1")
    private Integer tokenId;

    @NotNull(message = "最小提现数量不能为空")
    @Min(value = 0,message = "最小提现数量最小为0且只能输入整数")
    @ApiModelProperty(name = "最小提现数量", value = "minAmount", required = true, example = "1")
    private Integer minAmount;

    @NotNull(message = "最大提现数量不能为空")
    @Min(value = 0,message = "最大提现数量最小为0且只能输入整数")
    @ApiModelProperty(name = "最大提现值", value = "maxAmount", required = true, example = "1")
    private Integer maxAmount;

    @NotNull(message = "提现gas费不能为空")
    @Min(value = 0,message = "80103005")
    @ApiModelProperty(name = "提现gas费", value = "feeAmount", required = true, example = "1")
    private BigDecimal feeAmount;
}
